package com.github.chirspan.xaas.soa.message.handler;


public class StringValueHandler extends AbstractValueHandler {

    @Override
    public Object getReadingValue(Object srcValue, String destType,
                                  String destFormat) {
        return srcValue;
    }

    @Override
    public String getWritingValue(Object srcValue, String destFormat) {
        return srcValue == null ? "" : srcValue.toString();
    }
}
